package com.guigu.guliware.feign;

import com.guigu.gulicommon.entity.pojo.res.Res;
import com.guigu.gulicommon.entity.vo.OmsOrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 订单远程调用服务
 *
 * @author 陈俊杰
 * @version 1.0
 * @since 2024/9/26 14:13
 */
@FeignClient(name = "gateway-server", path = "/api/order", contextId = "OrderServer")
public interface OrderServer {
    /**
     * 根据订单号获取订单状态
     *
     * @param orderSn 订单号
     * @return 订单
     */
    @GetMapping("/oms-order/orderStatus")
    Res<OmsOrderVo> getOrderStatusBySn(@RequestParam("orderSn") String orderSn);
}
